package cn.myframe.utils.validate;

import java.util.Arrays;
/**
 * 
 * 
 *  @author ynz
 *  @email ynz@myframe.cn
 *  @date 2018年7月31日 下午3:43:57
 */
public class ValidateResult {
	private boolean result = false; //校验结果
	 
    private String[] errMsg; //错误信息
 
    public ValidateResult(boolean result, String[] errMsg) {
        this.result = result;
        this.errMsg = errMsg;
    }
 
 
    public boolean isSuccess() {
        return result;
    }
 
    public String[] getErrMsg() {
        return errMsg;
    }
 
 
    /**
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "ValidateResult [result=" + result +
                ", errMsg=" + Arrays.toString(errMsg) + "]";
    }

}
